3339b2e5edda9f622ea50838d25523fef2a94c02,src/components/org/apache/jmeter/extractor/XPathExtractor.java,XPathExtractor,getValuesForXPath,#Document#String#JMeterVariables#String#,188

Before Change


				if ( match instanceof Element){
				   // elements have empty nodeValue, but we are usually
				   // interested in their content
				   val = match.getFirstChild().getNodeValue();
				} else {				
				   val = match.getNodeValue();
				}

After Change


	            Node match = matches.item(i);
				if ( match instanceof Element){
				// elements have empty nodeValue, but we are usually interested in their content
				   final Node firstChild = match.getFirstChild();
				   if (firstChild != null) {
					   val = firstChild.getNodeValue();
				   } else {
					   val = match.getNodeValue(); // TODO is this correct?